package com.base.cn.platform.os.service.manage.integralgood;

import com.base.cn.platform.os.entity.integralgood.IntegralCardVoucher;
import com.base.cn.platform.os.entity.integralgood.IntegralVirtualGood;
import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 虚拟商品卡密
 *
 * @author zjh
 * @create 2019-10-31
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface IntegralVirtualGoodService extends BaseService {

     String path =contextPath+"/integralVirtualGood/";


    /**
     * 获取列表
     * @param currentPage
     * @param integralVirtualGood
     * @return
     */
    @RequestMapping(path+"getPageList")
     Map getPageList(@RequestParam(value = "currentPage",required = false,defaultValue = "1") int currentPage , @RequestBody IntegralVirtualGood integralVirtualGood );


    /**
     * 保存数据
     * @param integralVirtualGood
     * @return
     */
    @RequestMapping(path+"saveEntity")
     Map  saveEntity(@RequestBody IntegralVirtualGood integralVirtualGood );

    /**
     * 根据ID获取对象
     * @param id
     * @return
     */
    @RequestMapping(path+"getById")
    Map  getById(@RequestParam ("id") BigDecimal id );



}
